package com.acpt.system.api;

import com.acpt.common.constant.GlobalConstants;
import com.acpt.common.result.Result;
import com.acpt.system.api.fallback.UserFeignFallbackClient;
import com.acpt.system.dto.UserAuthInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zeng_
 */
@FeignClient(value = GlobalConstants.XIANG_SYSTEM, fallback = UserFeignFallbackClient.class)
public interface UserFeignClient {

  @GetMapping("/api/system/users/{username}/authinfo")
  Result<UserAuthInfo> getUserAuthInfo(@PathVariable String username);
}
